package org.paysim.util;

import java.util.List;

import org.mapstruct.Mapper;
import org.paysim.entity.OrderTable;
import org.paysim.order.model.OrderCreateRequest;
import org.paysim.order.model.OrderDetailResponseData;
import org.paysim.order.model.OrderResponseData;

@Mapper(componentModel = "spring")
public interface OrderMapper {
    OrderTable orderToTable(OrderCreateRequest orderCreateRequest);

    OrderResponseData orderToResponseData(OrderTable orderTable);

    OrderDetailResponseData orderToOrderDetail(OrderTable orderTable);

    List<OrderDetailResponseData> orderToOrdeList(List<OrderTable> ordeList);

}
